<?php
namespace app\index\controller;
 use think\Controller ;
 use think\Db;


 class Index  extends Controller
{
    public function index()
    {
        return $this->fetch('index/index');
    }

    public function login()
    {
        return $this->fetch('login/login');


    }
    public function register()
{
    dd($_POST);
   // dd($_GET);

 $result =Db::table('user')->insert($list[]);
     return $this->fetch('index/index');

}
}
